/* linkit.js
 * By François Leporcq
 * MIT Licensed.
 */
var HTMLContainer = Rectangle.extend({
    _className: "HTMLContainer",
    init: function(origin, HTMLNode){
        this._HTMLNode = HTMLNode;
        this._super(origin, 0, 0);
    },
    getHTMLNode: function(){
        return this._HTMLNode;
    },
    afterWorkspaceAdd: function(workspace){
        if(workspace instanceof SVGWorkspace){
            workspace.draw(this);
            this.setWidth(this._HTMLNode.offsetWidth);
            this.setHeight(this._HTMLNode.offsetHeight);
            workspace.clear(this);
        }
    }
});